package com.itheima.blog.web.controller;

import com.itheima.blog.util.UserThreadLocalUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {
    @GetMapping("/demo")
    public String demo(){
        return ""+UserThreadLocalUtils.getWebUserId();
    }
}
